﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="user_Comment.aspx.cs" Inherits="UserCenter_user_Comment" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户评论</title>
    <style type ="text/css">
        body{font-size: 12px;}
        .ratingStar
        {
            font-size: 0pt;
            width: 13px;
            height: 12px;
            margin: 0px;
            padding: 0px;
            cursor:pointer;
            display:block;
        }
        .filledRatingStar
        {
            background-image:url(../image/FilledStar.png);
        }
        .emtyRatingStar
        {
             background-image:url(../image/EmptyStar.png);
        }
        .savedRatingStar
        {
             background-image:url(../image/SavedStar.png);
        }
        
        .style1
        {
            width: 105px;
        }
        
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width:700px; margin:0 auto">
      <div >
       <asp:ScriptManager ID="ScriptManager1" runat="server" />
      </div>
      <table style=" margin:0 auto; width: 550px;">
        <tr>
          <td  colspan="2">产品编号：<asp:Label ID="productId" runat="server"></asp:Label><asp:Label ID="userId" runat="server" Visible="false"></asp:Label>
          </td>
        </tr>
        <tr>
          <td class="style1" >         
          卖家的服务态度：
          </td>
          <td>
          <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode ="Conditional">
                <ContentTemplate>
                    <cc1:Rating ID="Rating1" runat="server" CurrentRating="1" AutoPostBack="True"  EmptyStarCssClass ="emtyRatingStar"
                     FilledStarCssClass ="filledRatingStar"  MaxRating="5" WaitingStarCssClass ="savedRatingStar" StarCssClass = "ratingStar"
                       OnChanged ="Rating_Changed1" Width="130px" >
                    </cc1:Rating>
                    &nbsp;&nbsp;你给卖家评<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red" Text="几"></asp:Label>星级
                </ContentTemplate>
            </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
          <td class="style1">
          宝贝与描述相符：
          </td>
          <td>
                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode ="Conditional">
                    <ContentTemplate>
                        <cc1:Rating ID="Rating2" runat="server" CurrentRating="1" AutoPostBack="True"  EmptyStarCssClass ="emtyRatingStar"
                         FilledStarCssClass ="filledRatingStar"  MaxRating="5" WaitingStarCssClass ="savedRatingStar" StarCssClass = "ratingStar"
                          OnChanged ="Rating_Changed2" Width="130px" >
                        </cc1:Rating>
                        &nbsp;&nbsp;你给卖家评<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red" Text="几"></asp:Label>星级
                    </ContentTemplate>
                </asp:UpdatePanel>
          </td>    
        </tr>
        <tr>
          <td class="style1">
          卖家发货的速度：
          </td>
          <td>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode ="Conditional">
                    <ContentTemplate>
                        <cc1:Rating ID="Rating3" runat="server" CurrentRating="1" AutoPostBack="True"  EmptyStarCssClass ="emtyRatingStar"
                         FilledStarCssClass ="filledRatingStar"  MaxRating="5" WaitingStarCssClass ="savedRatingStar" StarCssClass = "ratingStar"
                          OnChanged ="Rating_Changed3" Width="130px" >
                        </cc1:Rating>
                        &nbsp;&nbsp;你给卖家评<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Italic="False" ForeColor="Red" Text="几"></asp:Label>星级
                    </ContentTemplate>
                </asp:UpdatePanel>
          </td>
        </tr>  
        <tr>
            <td colspan="2" style="color: #43a0db; text-decoration: underline">
                <strong>请大家对该商品发表自己的评论：</strong>
            </td>
        </tr>
        <tr>
            <td  colspan="2">昵称：<asp:TextBox ID="txtName" Runat="server" Enabled="false"></asp:TextBox>
                <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtContent" ErrorMessage="没有填写评论的内容" Width="179px"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td  colspan="2"><asp:TextBox Runat="server" ID="txtContent" TextMode="MultiLine" Rows="5" 
                    MaxLength="1000" Width="450"
                    Wrap="true" ></asp:TextBox>
                <asp:Button ID="btnReView" Runat="server" Text="发表评论" 
                    onclick="btnReView_Click" ></asp:Button></td>
        </tr>
      </table>
    </div>  
    </form>
</body>
</html>
